﻿@model IEnumerable<FantasyDraft2.Models.User>

@{
    ViewBag.Title = "Fantasy Home";
}

<h2>Fantasy Home</h2>

<table>
    <tr>
        <th>Owner Name
        </th>
        <th>Team Name
        </th>
        <th>Season Score
        </th>
        <th>
    </tr>
        @foreach (var u in Model)
        {
            <tr>
                <td>
                    @u.UserName
                </td>
                <td>
                    @Html.ActionLink(@u.TeamName, "Details", new { id = u.TeamId})
                </td>
                <td>
                    @u.Score
                </td>
            </tr>
        }
</table>
